//
//  AILeftSelBackgroundView.m
//  aixianfeng
//
//  Created by betty on 16/12/22.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

#import "AILeftSelBackgroundView.h"

@implementation AILeftSelBackgroundView

- (void)drawRect:(CGRect)rect {
    // 绘制灰色的背景
    UIBezierPath *beizerPath = [UIBezierPath bezierPathWithRect:rect];
    
    [[UIColor whiteColor] set];
    [beizerPath fill];
    
    // 黄色的色块
    CGFloat lineHeight = rect.size.height * 0.8;
    CGFloat lineY = (rect.size.height - lineHeight) / 2;
    
    UIBezierPath *linePath = [UIBezierPath bezierPathWithRect:CGRectMake(0, lineY, 5, lineHeight)];
    
    [[UIColor colorWithRed:255/255.0 green:219/255.0 blue:0/255.0 alpha:1] set];
    [linePath fill];
}


@end
